package Model;

import java.util.ArrayList;

public class PlayList {
	
	private String name;
	private double totalTime;
	private int trackNumber;
	private ArrayList<Nummer>songsInPlaylist = new ArrayList<Nummer>();

	public PlayList(String name,double totalTime,int trackNumber, ArrayList<Nummer> songsInPlayList) {
		this.name = name;
		this.totalTime = totalTime;
		this.trackNumber = trackNumber;
		this.songsInPlaylist = songsInPlayList;
	}
	
	public void addSong(Nummer song){
		this.songsInPlaylist.add(song);
	}
	
	public void removeSong(Nummer song){
		this.songsInPlaylist.remove(song);
	}
	
	//getters and setters
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public double getTotalTime() {
		return totalTime;
	}

	public void setTotalTime(double totalTime) {
		this.totalTime = totalTime;
	}

	public int getTrackNumber() {
		return trackNumber;
	}

	public void setTrackNumber(int trackNumber) {
		this.trackNumber = trackNumber;
	}

	public ArrayList<Nummer> getSongsInPlaylist() {
		return songsInPlaylist;
	}

	public void setSongsInPlaylist(ArrayList<Nummer> songsInPlaylist) {
		this.songsInPlaylist = songsInPlaylist;
	}


}
